package com.menggudf.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="UserInfo")
public class UserInfo implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = -1698921072707093437L;
    
    private int id;
    private String userCode;
    private String height;
    private Integer weight;
    private Integer bloodPressure;
    private Integer pulse;
    private Integer abdominalLine;
    private Integer hipLine;
    private Date createTime;
    
    @Id
    @Column(name="id",unique=true,nullable=false)
    @GeneratedValue(strategy=GenerationType.IDENTITY)
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    @Column(name="userCode",nullable=false,length=20)
    public String getUserCode() {
        return userCode;
    }
    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }
    @Column(name="height",nullable=false,length=10)
    public String getHeight() {
        return height;
    }
    public void setHeight(String height) {
        this.height = height;
    }
    @Column(name="weight",nullable=false,length=10)
    public Integer getWeight() {
        return weight;
    }
    public void setWeight(Integer weight) {
        this.weight = weight;
    }
    @Column(name="bloodPressure",nullable=false,length=10)
    public Integer getBloodPressure() {
        return bloodPressure;
    }
    public void setBloodPressure(Integer bloodPressure) {
        this.bloodPressure = bloodPressure;
    }
    @Column(name="pulse",nullable=false,length=10)
    public Integer getPulse() {
        return pulse;
    }
    public void setPulse(Integer pulse) {
        this.pulse = pulse;
    }
    @Column(name="abdominalLine",nullable=false,length=10)
    public Integer getAbdominalLine() {
        return abdominalLine;
    }
    public void setAbdominalLine(Integer abdominalLine) {
        this.abdominalLine = abdominalLine;
    }
    @Column(name="hipLine",nullable=false,length=10)
    public Integer getHipLine() {
        return hipLine;
    }
    public void setHipLine(Integer hipLine) {
        this.hipLine = hipLine;
    }
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "createTime", length = 19)
    public Date getCreateTime() {
        return createTime;
    }
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

}
